home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / rayshade / graphtal.lzh / Graphtal.Amiga / rgb2rayshade.awk < prev    next >
Text File  |  1992-09-04  |  251b  |  11 lines

  1. BEGIN { print "#ifndef COLORS_INC"
  2.         print "# define COLORS_INC\n"
  3.       }
  4.       
  5.       { printf "surface %-20s\n", $4
  6.     printf "  diffuse %1.3g %1.3g %1.3g\n\n", $1/255, $2/255, $3/255
  7.       }
  8. END   { print "\n#endif COLORS_INC" }
  9.       
  10.          
  11.